package model.model03.demo03.decorator;

import com.model.model03.demo03.entity.Person;

public class FineryDecorator extends Person {

    protected Person component;

    public void setDecorator(Person component) {
        this.component = component;
    }

    @Override
    public void show() {
        if (component != null) {
            component.show();
        }
    }
}
